﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Media;
using System.Windows.Media.Imaging;

namespace Dither.VersionSelector.Models
{
    internal class ExecutableItem
    {
        public string FileLocation { get; set; }
        public string FriendlyName { get; private set; }
        public ImageSource Icon { get; set; }

        public ExecutableItem(string fileLocation)
        {
            FileLocation = fileLocation;
            FriendlyName = Path.GetFileNameWithoutExtension(fileLocation);

            BitmapImage image = new BitmapImage();
            image.BeginInit();
            image.UriSource = new Uri("pack://application:,,,/DitherVSLauncher;component/Resources/applications-other.png");
            image.EndInit();

            Icon = image;
        }
    }
}
